package com.enation.app.shop.front.policyInsurance.service;


import com.enation.app.shop.front.api.inpolicy.entity.InPolicy;
import com.enation.app.shop.front.policyInsurance.entity.ClaimApplication;

import java.util.List;

public interface ClaimApplicationMapper {


    int deleteByPrimaryKey(Long id);

    int insert(ClaimApplication record);

    int insertSelective(ClaimApplication record);

    ClaimApplication selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ClaimApplication record);

    int updateByPrimaryKey(ClaimApplication record);

    int getClaimCount(Long breed_factory_id);

    List<ClaimApplication> listByUserid(Long breed_factory_id);

    List<InPolicy> getWarrantyByuserid(Integer userid);

    List<ClaimApplication> listByUseridAndStatusFac(Integer userid, Integer status,String item);

    List<ClaimApplication> listByUseridAndStatusIns(Integer userid, Integer status, String item);

    List<ClaimApplication> getByWarrantyid(Integer warrantyid);

    List<ClaimApplication> getAll();

    List<ClaimApplication> getByPage(int i, Integer limit, String seacher);

    List<ClaimApplication> getBySercher(String seacher);
}